home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
arexx
/
switcher
/
toastslideshow.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-04-16
|
2KB
|
59 lines
/* Toaster Slide Show -- Shows ALL your framestores */
/* By Arnie Cachelin © 1992 NewTek Inc. */
/* This program will display ALL the frames in the current FrameStore
directory in a slideshow manner, using whatever transition is currently
selected. It will also say what it is showing, which may get annoying,
unless you turn your volume down!
It is difficult to make it stop using ctl-C, so you may want
to move the frames you want to show to another framestore directory, like
RAM:.
*/
OPTIONS RESULTS
TOASTERLIB="ToasterARexx.port"
IF ~SHOW('Libraries',TOASTERLIB) THEN
IF ~ADDLIB(TOASTERLIB , 0) THEN x=Bummer(" Please start your Video Toaster")
Switcher(MDV1) /* put Program and Preview outputs on framestores */
Switcher(PDV2)
Switcher(TOSW)
/* Switcher(GOLD) /* Set keypad to frame loading */ */
Switcher(DOEN) /* hit enter key to load */
Switcher(AUTO) /* Do whatever transition is selected */
N=Switcher(STAT,KNUM) /* Get the current keypad number, so we know where we started */
Switcher(KEYP) /* hit the '+' key */
Switcher(FAST) /* set transition speed to fast (we don't have all day!) */
do While Switcher(STAT,KNUM)~=N /* Go until we return to the starting frame */
say Switcher(STAT,TEXT)
Switcher(DOEN) /* hit enter key to load */
Switcher(KEYP) /* hit the '+' key */
Switcher(AUTO) /* Do whatever transition is selected */
end
exit /* All done! */
Bummer: PROCEDURE
arg etxt
say etxt
EXIT
return 0
/* Here are two fun special effects type procedures I did for the XMas party...
they aren't actually used here. */
CutAndFade: Procedure /* Select fade transition for pulsing effect */
Switcher(TAKE) /* Cut to one frame */
Switcher(AUTO) /* Fade (or whatever) to other frame */
return 1
RandomCrouton: PROCEDURE /* Select a random crouton!, some may not do the right thing! */
grd=translate(random(1,6),"ABCDEF","123456") /* random letter generator! */
TOASTCmd= "t=Switcher(Grid,"GRD||RANDOM(1,4)||RANDOM(1,8)||")"
SAY TOASTCmd
INTERPRET TOASTCmd
return t